package com.xiaoshuidi.cloud.module.member.api.message;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.member.api.message.dto.MemberMessageDTO;
import com.xiaoshuidi.cloud.module.member.api.user.dto.MemberUserReqDTO;
import com.xiaoshuidi.cloud.module.member.api.user.dto.MemberUserRespDTO;
import com.xiaoshuidi.cloud.module.member.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ApiConstants.SERVERNAME)
public interface MemberMessageApi {
    String PREFIX = ApiConstants.PREFIX + "/message";


    @PostMapping(PREFIX + "/create")
    @Operation(summary = "发送消息")
    CommonResult<Boolean> create(@RequestBody MemberMessageDTO message);
}
